<template>
	
		 <xm-record v-if="selProject"  :visible="true" :project-id="selProject.id" />
		 <xm-record v-else-if="xmProduct"  :visible="true" :product-id="xmProduct.id" />
		<xm-record v-else :visible="true" />
	
</template>

<script> 
	
	 
	import { mapState } from 'pinia'
import { useUserStore } from '@/store/modules/user' 
	import XmRecord from './XmRecord.vue' 
	
	export default { 
		computed: {
		    ...mapState(useUserStore,[
		      'userInfo','roles'
		    ])
		},
		props:['selProject','xmProduct'],
		data() {
			return {
				 
			}
		},//end data
		methods: { 
			 
		},//end methods
		components: {  
		    XmRecord
		},
		mounted() { 
			 
		}
	}

</script>

<style scoped>
   
</style>